<!doctype html>
<html>
{include file="head.html"}

<body>

<div class="header" >
    <div  class="left-btn pointer goback"><span class="iconfont icon-back"></span></div>
    <div class="title">分类管理</div>
    <div  class="right-btn pointer" onClick="window.location='{$appshop}?m=shop_category&a=add'"><span class="iconfont icon-write"></span></div> 
     
  </div>
  
  <div class="main-body">
  	<style>
	.sclist{width:90%; margin:0 auto; border-collapse:collapse;}
    .sclist td{height:40px; border-bottom:1px solid #eee;}
    </style>
    <table class="sclist">
    	{foreach item=c from=$data}
        <tr class="item">
        	<td width="200">
            	{$c.orderindex}.{$c.title}  
            </td>
            <td align="right"><a href="{$appshop}?m=shop_category&a=add&id={$c.id}">编辑</a>&nbsp;&nbsp; 
            <a class="delete" href="javascript:;" url="{$appshop}?m=shop_category&a=delete&id={$c.id}">删除</a></td>
            
             
            
        </tr>
        {foreachelse}
        <tr><td>暂无分类</td></tr>
        {/foreach}
    </table>
  	
  </div>

</body>
</html>
